//
//  Bootstrapper.swift
//  maosheng
//
//  Created by 何海涛 on 2019/7/30.
//

import Foundation
import UIKit

class Bootstrapper {
    static func createRootViewController() -> UIViewController {
        
        if UserInfo.getUserIsLogged() {
            
            
            
            return  UINavigationController(rootViewController: HomeViewController())

        }else{
            let login = LoginViewController()
            let nav = UINavigationController(rootViewController: login)
            return nav;
        }

    }
}
